package com.wing.file.service;

import com.wing.file.model.response.FileVO;
import com.wing.file.util.FileType;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Description: 腾讯云
 * @Project: szgc
 * @Package: com.wing.file.service.TengXunFileService
 * @Date: 2025/04/29 10:54
 * @Author: heZhou
 * @Version: 1.0
 */
public interface TengXunFileService extends AbstractService {

    @Override
    FileVO uploadFile(MultipartFile file, String path) throws Exception;

    @Override
    FileType getFileType();

    @Override
    void downloadFile(String fileUrl, HttpServletResponse response) throws Exception;

    /**
     * 批量上传
     * @param file
     * @param path
     * @return
     * @throws Exception
     */
    @Override
    List<FileVO> uploadMultipartFile(MultipartFile[] file, String path) throws Exception;

    /**
     * 获取文件夹 中的文件
     * @param path
     * @return
     * @throws Exception
     */
    @Override
    List<FileVO> listObjects(String path) throws Exception;
}
